package demo.java.parallelprogram.threadpool;

import java.util.concurrent.atomic.AtomicInteger;

public class MyAtomic {
	
	private static final int MAX_Threads = 3;//线程数 
	private static final int Task_Count = 3;//任务数
	private static final int Target_Count = 1000000;//目标总数
	private AtomicInteger acount = new AtomicInteger(0);//无锁的原子操作
	private int count=0;
	
	protected synchronized int inc(){
		return count++;
	}
	
	protected synchronized int getCount(){
		return count;
	}
	
	public class SyncThread implements Runnable{
		protected String name;
		protected long starttime;
		
		@Override
		public void run() {
			
		}
		
	}

}


